﻿@model AMAP.Areas.Supplier.Models.Offer.SupplierOfferCreateViewModel

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>SupplierOfferCreateViewModel</legend>

        <div class="item">
            <div class="editor-label">
                <label for="Name[0]">Nom</label>
            </div>
            <div class="editor-field">
                <input type="text" 
                name="Name[0]" />
            </div>

            <div class="editor-label">
                <label for="Unit[0]">Unité</label>
            </div>
            <div class="editor-field">
                <input type="text" 
                name="Unit[0]" />
            </div>
        </div>

        <div class="item">
            <div class="editor-label">
                <label for="Name[1]">Nom</label>
            </div>
            <div class="editor-field">
                <input type="text" 
                name="Name[1]" />
            </div>'

            <div class="editor-label">
                <label for="Unit[1]">Unité</label>
            </div>
            <div class="editor-field">
                <input type="text" 
                name="Unit[1]" />
            </div>
        </div>


        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
